<?php 
    //p9m4t5d8

    require_once 'include/funcoes.php';
    //checkLogado();
    
	$semIrPara = false;
	
    $geral = "";
    $id_perfil = $_GET['id_perfil']; 
    extract(getDadosPerfil($id_perfil));
    
    if(isset ($_SESSION['usuario']['logado'])){
		$id_usuario = $_SESSION['usuario']['id'];
    }else{
		$geral = "Geral";
		$id_usuario = $id_perfil;
    }
    
    
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
    <head>
	<meta name="viewport" content="initial-scale=1.0, user-scalable=no" />
	<meta http-equiv="content-type" content="text/html; charset=UTF-8"/>
	<title><?=PROJECT_NAME?></title>
	<link href="http://code.google.com/apis/maps/documentation/javascript/examples/default.css" rel="stylesheet" type="text/css" />
	
	<link href="include/css/geral.css" rel="stylesheet" type="text/css" />	
	<link href="include/css/perfil.css" rel="stylesheet" type="text/css" />	
	<link href="include/css/click.css" rel="stylesheet" type="text/css" />
	<script type="text/javascript" src="http://maps.googleapis.com/maps/api/js?sensor=false"></script>
	<script type="text/javascript" src="cluster/src/markerclusterer.js"></script>
	
	<script type="text/javascript" src="include/js/mootools-core-1.4.3-full-compat-yc.js"> </script>
	<script type="text/javascript" src="include/js/mootools-more-1.4.0.1.js"> </script>	
	<script src="include/js/milkbox-yc.js"></script>	
	<script type="text/javascript" >
	    var perfil = true;
	    var id_perfil = "<?=$id_perfil?>";
	</script>
	<script type="text/javascript" src="include/js/infoBox.js"> </script>	
	<script type="text/javascript" src="include/js/readMap.js"> </script>
	
	<link rel="stylesheet" href="include/css/milkbox/milkbox.css" media="screen" />
	
</head>
	<body onload="initialize(); read1()">	    
		<?require_once 'include/layoutUp'.$geral.'.php';?>
	    <div class="fullscreen-map" id="map_canvas"></div> <br/>
	    
	    <ul id="menu-acoes2">
		<li>		    
		    <div class="item-acoes2">
			
			<div id="foto-usuario-crop">
			    <img class="icone foto-usuario-tam2" src="usuarios/fotos/<?=$perfil_foto?>" alt="<?=$perfil_nome?>" />
			</div>
			<div class="bottom2">
			    <span class="titulo"><?=$perfil_nome?></span>

			    <span id="seguir">			
				<?
				if($id_perfil != $id_usuario){
				    if(!isSeguido($id_usuario, $id_perfil)) {?>
					    <a href="javascript:void(0)" onclick="seguir(<?=$id_perfil?>)" >seguir</a><br />
				    <?} else {?>
						<span class="jasigo">Você já segue esta pessoa.</span>
				    <?}
				}?> 
			    </span>			    
			</div>
		    </div>
		</li>
		<li>
			<!--<h2 class="item-acoes">
				<img class="icone" src="./include/img/amigos.png" alt="amigos"/>
				<span class="titulo">amigos</span>					
			</h2>-->
			<div class="conteudo">
				<? include "include/request/getAmigos.php"; ?>
		    </div>
		</li>		
	    </ul>
	</body>
	<script type="text/javascript" src="include/js/funcoes.js"> </script>
</html>
